package old.test;

public class 测试1 {
    public static void main(String[] args) {

        String left = "1234abc";
        String right = "kkkkk";

        int len = 100 - left.length() - right.length();
        System.out.print(left);
        for (int i = 0; i <= len; i = i + 1) {
            System.out.print(" ");
        }
        System.out.println(right);
    }

    public static void alignPrint(String left, String right, int len) {

        int mid = 100 - left.length() - right.length();
        System.out.print(left);
        for (int i = 0; i <= mid; i = i + 1) {
            System.out.print(" ");
        }
        System.out.println(right);
    }
}
